package com.ihg.hiex.admin.dao.account;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.ihg.hiex.entity.user.Assessor;

/**
 * @author Guangli Yan
 *
 */
@Dao("hibernate")
public interface AssessorDao {

	/**
	 * 
	 * @param email
	 * @return
	 */
	@Query("FROM Assessor WHERE disabled = false AND email =:email")
	public Assessor loadByEmail(@Variable("email") String email);
	
	/**
	 * 
	 * @param ids
	 * @return
	 */
	@Query("FROM Assessor WHERE disabled = false AND id IN (:ids)")
	public List<Assessor> list(@Variable("ids") List<Long> ids);

}
